package com.frogs.ucenter.dao.ibatis;

import java.util.Map;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.UserRechargeRecordDao;
import com.frogs.ucenter.entity.UserRechargeRecord;
import com.ibatis.sqlmap.client.SqlMapClient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

@Repository("userRechargeRecordDao")
public class UserRechargeRecordDaoImpl extends BaseDaoIbatis<UserRechargeRecord> implements UserRechargeRecordDao {

    public UserRechargeRecordDaoImpl() {
        super();
        setNameSpace( "user_recharge_record" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }
    
    @Override
    public PageList<Map<String, Object>> selectAllByMap(Map<String, Object> params, int pageNo, int pageSize) {
        return (PageList<Map<String, Object>>) queryforPageList(getNameSpace() + ".selectAllByMap", params, pageNo, pageSize, true);
    }

	@Override
	public PageList<Map<String, Object>> selectListByDate(
			Map<String, Object> params, int pageNo, int pageSize) {
		return (PageList<Map<String, Object>>) queryforPageList(getNameSpace() + ".selectListByDate", params, pageNo, pageSize, true);
	}
}